home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: May 14 1996
- // Author: mgr
- //
- // Description:
- // These procs create the controls for a common modelling property sheet.
- // See also commonModellingValues.mel for procs that set the state of the
- // property sheet.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
- proc commonModellingSetCallbacks( string $parent, string $ctxCmdName ) {
- //
- // Description:
- // Set the callbacks for all of the controls in the dialog.
- // Modifying the context will force commonModellingValues() to
- // be called to update the state of the property sheet.
- //
- //
- setParent $parent;
- }
-
- global proc optionalCommonModellingSetCallbacks(string $parent, string $ctxCmdName,
- string $showOutputStyle,
- string $showKeepOriginals,
- string $showCurveRange,
- string $showRebuild)
- {
- //
- // Description:
- // Set the callbacks for all of the controls in the dialog.
- // Modifying the context will force commonModellingValues() to
- // be called to update the state of the property sheet.
- //
- //
- setParent $parent;
-
- if ($showOutputStyle == "showOutputStyle")
- {
- frameLayout -edit -collapse false showOutputFrameLayout;
- radioButtonGrp -e
- -cc1 ($ctxCmdName + " -e -po false `currentCtx`")
- -cc2 ($ctxCmdName + " -e -po true `currentCtx`")
- commonModellingOutputOptions;
- } else
- {
- frameLayout -edit -collapse true showOutputFrameLayout;
- }
-
- if ($showKeepOriginals == "showKeepOriginals")
- {
- frameLayout -edit -collapse false keepOriginalFrameLayout;
-
- checkBoxGrp -e -cc1 ($ctxCmdName + " -e -rpo (! #1) `currentCtx`")
- commonModellingReplaceOptions;
- } else
- {
- frameLayout -edit -collapse true keepOriginalFrameLayout;
- }
-
- if ($showCurveRange == "showCurveRange")
- {
- frameLayout -edit -collapse false curveRangeFrameLayout;
-
- // Needs editing to match curve range attribute name
- radioButtonGrp -e
- -cc1 ($ctxCmdName + " -e -rn false `currentCtx`")
- -cc2 ($ctxCmdName + " -e -rn true `currentCtx`")
- commonModellingCurveRangeOptions;
- } else
- {
- frameLayout -edit -collapse true curveRangeFrameLayout;
- }
-
- if ($showRebuild == "showRebuild")
- {
- frameLayout -edit -collapse false rebuildStyleFrameLayout;
-
- // Needs editing to match rebuild attribute name
- checkBoxGrp -e
- -cc ($ctxCmdName + " -e -rb #1 `currentCtx`")
- commonModellingRebuildOption;
- } else
- {
- frameLayout -edit -collapse true rebuildStyleFrameLayout;
- }
- }
-
- global proc commonModellingProperties( string $parent, string $ctxCmdName )
- //
- // Description:
- // This procedure builds the property sheet and assigns callbacks to its
- // controls. The state of the controls are set in commonModellingValues().
- //
- // Description:
- // The common controls will look like:
- //
- // [] History
- // [] Auto Create
- //
- {
- setUITemplate -pushTemplate OptionsTemplate;
- setParent $parent;
-
- //
- // Common modelling options
- //
- frameLayout -collapsable true -collapse false
- -label "Standard Options" commonModellingFrame;
- columnLayout commonModellingLayout;
-
- frameLayout -labelVisible false -borderVisible false
- -collapsable true -collapse true
- keepOriginalFrameLayout;
- columnLayout;
- checkBoxGrp -numberOfCheckBoxes 1 -label ""
- -label1 "Keep Original"
- -value1 false
- commonModellingReplaceOptions;
- setParent ..;
- setParent ..;
-
- frameLayout -labelVisible false -borderVisible false
- -collapsable true -collapse true
- curveRangeFrameLayout;
- columnLayout;
- radioButtonGrp -numberOfRadioButtons 2 -label "Curve Range"
- -label1 "Complete"
- -label2 "Partial"
- -select 1
- commonModellingCurveRangeOptions;
- setParent ..;
- setParent ..;
-
- frameLayout -labelVisible false -borderVisible false
- -collapsable true -collapse true
- rebuildStyleFrameLayout;
- columnLayout;
- checkBoxGrp -numberOfCheckBoxes 1 -label ""
- -label1 "Rebuild"
- -value1 false
- commonModellingRebuildOption;
- setParent ..;
- setParent ..;
-
- frameLayout -labelVisible false -borderVisible false
- -collapsable true -collapse true
- showOutputFrameLayout;
- columnLayout;
- radioButtonGrp -numberOfRadioButtons 2 -label "Output Geometry"
- -label1 "Nurbs"
- -label2 "Polygons"
- -select 1
- commonModellingOutputOptions;
- setParent ..;
- setParent ..;
-
- setParent ..;
- setParent ..;
-
- commonModellingSetCallbacks( $parent, $ctxCmdName );
- setUITemplate -popTemplate;
- }
-